package com.qianfeng.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qianfeng.dao.CarMapper;
import com.qianfeng.pojo.Car;
import com.qianfeng.service.CarService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class CarServiceImpl implements CarService {
    @Resource(type = CarMapper.class)
    private CarMapper carMapper;
    @Override
    public List<Car> selectAll() {
        return carMapper.selectAll();
    }

    @Override
    public int insertSelective(Car record) {
        return carMapper.insertSelective(record);
    }

    @Override
    public List<Car> select(String carid, String carzy, String ename, Integer shiyongzhuangtaiid) {
        return carMapper.select(carid, carzy, ename, shiyongzhuangtaiid);
    }

    @Override
    public Car selectByPrimaryKey(String carid) {
        Car car = carMapper.selectByPrimaryKey(carid);
        return car;
    }

    @Override
    public int updateByPrimaryKeySelective(Car record) {
        return carMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateCar(String carid) {
        return carMapper.updateCar(carid);
    }

}
